package base_spi;

import java.util.Iterator;
import java.util.ServiceLoader;

/**
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 */
public class TestCase {
    public static void main(String[] args) {
        ServiceLoader<Search> loader = ServiceLoader.load(Search.class);
        Iterator<Search> iterator = loader.iterator();
        while (iterator.hasNext()) {
            iterator.next().searchDoc("查询");
        }
    }
}
